#shader vertex
#version 330 core
layout(location = 0) in vec4 position;
layout(location = 1) in vec2 tex_coord;

out vec2 v_text_coord;

uniform mat4 u_mvp;
void main()
{
	gl_Position = u_mvp * position;
	v_text_coord = tex_coord;
}


#shader fragment
#version 330 core
layout(location = 0) out vec4 color;

in vec2 v_text_coord;

uniform vec4 u_color;
uniform sampler2D u_texture;

void main()
{
	vec4 textColor = texture(u_texture, v_text_coord);
	color = textColor;
}